<div class="zs-body" data-ng-init="formInit('gisdatasyn', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{synDate:1}
    }) && loadData('gisdatasyn');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">日常管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">同步日志</a>
        </div>
        <div class="option">
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="link item" data-ng-init="iniTab('gisdatasyn', 'all', 'selected');">
                <a ng-click="setTab('gisdatasyn', 'all') && setQueryObject('gisdatasyn','state','null') && setQueryObject('gisdatasyn','state:!=','null') && loadData('gisdatasyn')"
                    class="{{tabs['gisdatasyn'].tabClass['all']}}">全部</a>
                <a ng-click="setTab('gisdatasyn', '01') && setQueryObject('gisdatasyn','state:!=','null') && setQueryObject('gisdatasyn','state','99') && loadData('gisdatasyn')"
                    class="{{tabs['gisdatasyn'].tabClass['01']}}">成功</a>
                <a ng-click="setTab('gisdatasyn', '02') && setQueryObject('gisdatasyn','state','null') && setQueryObject('gisdatasyn','state:!=','99') && loadData('gisdatasyn')"
                    class="{{tabs['gisdatasyn'].tabClass['02']}}">失败</a>
            </div>

            <div class="tool item">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="同步源" ng-model="gisdatasyn.queryObject['source']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="同步人" ng-model="gisdatasyn.queryObject['synUserName']" />
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gisdatasyn')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">

            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gisdatasyn','allCheckbox');" />
                                    </th>
                                    <th>同步源</th>
                                    <th>同步时间</th>
                                    <th>同步人</th>
                                    <th>类型</th>
                                    <th>状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gisdatasyn.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gisdatasyn',r);" ng-model="r.selected" />
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                            <label ng-bind="r.source"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                            <label ng-bind="r.synDate | asChineseTime "></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                            <label ng-bind="r.synUserName"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                            <label ng-bind="r.synTypeName"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisdatasyn',r) && openWindow('edit');">
                                            <label ng-bind="r.stateName"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gisdatasyn'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="工程同步记录" width='560px' height='320px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td class="text" width="20%">同步源</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gisdatasyn.editRow.source"></label>
                                </td>
                                <td class="text" width="20%">同步人</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gisdatasyn.editRow.synUserName"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">时间</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gisdatasyn.editRow.synDate | asChineseTime "></label>
                                </td>
                                <td class="text" width="20%">类型</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gisdatasyn.editRow.synTypeName"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">状态</td>
                                <td colspan="3" class="left" width="80%">
                                    <label ng-bind="gisdatasyn.editRow.stateName"></label>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">报告</td>
                                <td colspan="3" class="left" width="80%">
                                    <textarea readonly ng-model="gisdatasyn.editRow.report" rows="12" cols="60"></textarea>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="关闭" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>